package mapreduce;

public class WordCount implements Comparable<WordCount> {

	private String word;
	private Integer count;
	
	public WordCount(String word, Integer count) {
		super();
		this.word = word;
		this.count = count;
	}
	
	public String getWord() {
		return word;
	}
	public void setWord(String word) {
		this.word = word;
	}
	public Integer getCount() {
		return count;
	}
	public void setCount(Integer count) {
		this.count = count;
	}

	public int compareTo(WordCount arg0) {
		if(count < arg0.getCount())
			return 1;
		if(count > arg0.getCount())
			return -1;
		
		return 0;
	}
	
	
}
